#!/usr/bin/env python

import argparse
import sys
import os
#sys.path.append("Users/roosevelt/Desktop/bayes/trunk/modules/")


parser = argparse.ArgumentParser(description='Generate all graphs of an experiment.')

args = parser.parse_args()

os.system("mkdir graphs")

i = 0
while (True):
    if os.path.exists("./"+ str(i)):
        os.system("viewbn -p " + os.getcwd() + "/" + str(i) + "/alarm_final_structure -o " + os.getcwd() + "/graphs/" + str(i) + "_viz")
    else:
        break
    i+=1